import request from '@/utils/iasServiceRequest'

export function initRule1List(val) {
  return request({
    url: '/rules/queryRule001All',
    method: 'get',
    params: val
  })
}

export function submitRule1Info(val) {
  return request({
    url: '/rules/saveRule001Info',
    method: 'post',
    params: val
  })
}

export function insertRule1Info(val) {
  return request({
    url: '/rules/insertRule001Info',
    method: 'post',
    params: val
  })
}

export function deleteRule1Info(val) {
  return request({
    url: '/rules/delRule001Info/' + val,
    method: 'put',
    params: val
  })
}

// 批量删除类型1规则
export function batchDeleteRule1(ruleIds) {
  return request({
    url: '/rules/delRule1Batch',
    method: 'delete',
    params: ruleIds
  })
}
